package net.sunbeta.test.util ;

import java.util.HashMap ;
import java.util.Map ;

public class StringUtils {
    private Map<String, String> m_strings = new HashMap<String, String>() ;

    public String internString(String s) {
        if (s == null)
            return null ;
        String is = (String) m_strings.get(s) ;
        if (is != null)
            return is ;
        else {
            m_strings.put(s, s) ;
            return s ;
        }
    }
}
